<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#">员工列表</a></li>
			<li><a href="{:url('Staff/add')}">新增员工</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('Staff/index')}">
        <input type="text" class="form-control" name="user_login" style="width: 120px;" value="{:input('request.keyword')}" placeholder="员工手机号">
		<input type="submit" class="btn btn-primary" value="搜索" />
         <a class="btn btn-danger" href="{:url('Staff/index')}">清空</a>
        </form>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="left">所属店铺</th>
						<th align="left">真实姓名</th>
						<th align="left">手机号</th>
						<th align="left">性别</th>
						<th align="left">店铺地址</th>
						<th align="left">创建时间</th>
                                                <th align="left">操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="list" item="vo">
					<tr>
						<td>{$vo.shop_name}</td>
						<td>{$vo.user_nickname}</td>
						<td>{$vo.mobile}</td>
						<td><?php $type = $vo['sex'];switch($type){case 0: echo "保密";break;case 1: echo "男";break;case 2: echo "女";break;} ?></td>
						<td>{$vo.address}</td>
						<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
                                                <td>
                                                    <a href="{:url('Staff/edit',array('nav_id'=>$vo['user_guid']))}">修改</a>
                                                    <a href="{:url('Staff/deletego',array('nav_id'=>$vo['user_guid']))}">删除</a>
                                                </td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>